package com.muyu.user.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serial;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import com.muyu.user.domain.req.SysUserFriendQueryReq;
import com.muyu.common.core.web.domain.BaseEntity;

/**
 * 好友关系数据库映射对象 sys_user_friend
 *
 * @author liuguoqiang
 * @date 2025-09-18
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_user_friend")
@EqualsAndHashCode(callSuper = true)
public class SysUserFriend extends BaseEntity {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 好友ID
     */
    @Excel(name = "好友ID")
    private Long friendId;

    /**
     * 好友昵称
     */
    @Excel(name = "好友昵称")
    private String friendNickname;

    /**
     * 好友等级
     */
    @Excel(name = "好友等级")
    private String friendLevel;

    /**
     * 加入时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "加入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date joinTime;

    /**
     * 状态（0正常 1删除）
     */
    private String status;

    /**
     * 备注
     */
    private String remark;


}
